/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.modules.ta.entity.XiangQing;
import com.thinkgem.jeesite.modules.ta.service.XiangQingService;
import com.thinkgem.jeesite.modules.ta.util.GetWebServicePathUtil;


/**
 * 详情Controller
 * @author 刘雨轩
 * @version 2017-05-26
 */
@Controller
@RequestMapping(value = "${adminPath}/ta/xiangQing")
public class XiangQingController extends BaseController {

	@Autowired
	private XiangQingService xiangQingService;
	
	@RequiresPermissions("ta:xiangQingController:view")
	@RequestMapping(value = {"list", ""})
	public String list(String iid,XiangQing xiangqing,HttpServletRequest request,Model model){
		xiangqing.set编号(iid);
		List<XiangQing> xq = xiangQingService.findList(xiangqing);
		model.addAttribute("iid", xiangqing.get编号());
		model.addAttribute("xq", xq);
		String path = GetWebServicePathUtil.mingxi(iid, request);
		model.addAttribute("pathss", path);
		return "modules/ta/xiangQingList";
	}

}